const {getMovieHttp} = require("../../models/http")
const {transformStar} = require("../../utils/index")
Page({
  data:{
      lists:[]
  },
  onLoad:async function(){
    var res = await getMovieHttp()
    var lists = res.data.result
    lists.forEach(item=>{
        item.star = transformStar(item.raiting)
    })
    this.setData({
        lists
    })
  }
})
